java.lang.Object
ddejonge.bandana.negoProtocol.DiplomacyProposal
- All Implemented Interfaces:
es.csic.iiia.negoServer.unstructuredNegotiationProtocol.Proposal
,java.io.Serializable
public class DiplomacyProposal
extends java.lang.Object
implements es.csic.iiia.negoServer.unstructuredNegotiationProtocol.Proposal
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description DiplomacyProposal(java.lang.String id, BasicDeal deal)
-
Method Summary
Modifier and Type Method Description java.lang.Object
getContext()
Current implementation just returns null.java.lang.String
getId()
java.util.List<java.lang.String>
getParticipants()
Returns the names of all powers that are involved in the proposed Deal.Deal
getProposedDeal()
Returns the Deal object that is proposed in this proposal.Deal
getProposedDeal(es.csic.iiia.fabregues.dip.board.Game game)
java.lang.String
toString()
-
Constructor Details
-
Method Details
-
getId
public java.lang.String getId()- Specified by:
getId
in interfacees.csic.iiia.negoServer.unstructuredNegotiationProtocol.Proposal
-
getParticipants
public java.util.List<java.lang.String> getParticipants()Returns the names of all powers that are involved in the proposed Deal.- Specified by:
getParticipants
in interfacees.csic.iiia.negoServer.unstructuredNegotiationProtocol.Proposal
-
getProposedDeal
Returns the Deal object that is proposed in this proposal.- Specified by:
getProposedDeal
in interfacees.csic.iiia.negoServer.unstructuredNegotiationProtocol.Proposal
-
getProposedDeal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
getContext
public java.lang.Object getContext()Current implementation just returns null. In future implementations we might return a year and a phase, to indicate that the Proposal is only valid if accepted during that specific turn.- Specified by:
getContext
in interfacees.csic.iiia.negoServer.unstructuredNegotiationProtocol.Proposal
-